<script setup lang="ts">
import { useCart } from "./store/cart";
import { useAddress } from "./store/user";
//触发action从数据库请求购物车数据
const cart = useCart();
cart.cartInitAction();

//初始化地址列表
const address = useAddress();
address.addressInitAction();
</script>

<template>
  <Suspense>
    <RouterView />
  </Suspense>
</template>

<style scoped></style>
